import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LMS: AppRouteRecordRaw = {
    path: '/Settings',
    name: 'Settings',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: '设置',
        requiresAuth: true,
        icon: 'icon-dashboard',
        order: 4,
    },
    children: [
        {
            path: 'Subjects',
            name: 'Subjects',
            component: () => import('@/views/lms/subjects/index.vue'),
            meta: {
                locale: '学科管理',
                requiresAuth: true,
                roles: ['*'],
            }
        },
        {
            path: 'Knowledges',
            name: 'Knowledges',
            component: () => import('@/views/lms/knowledges/index.vue'),
            meta: {
                locale: '知识点管理',
                requiresAuth: true,
                roles: ['*'],
            }
        },
        {
            path: 'Exams',
            name: 'Exams',
            component: () => import('@/views/lms/exams/index.vue'),
            meta: {
                locale: '考试管理',
                requiresAuth: true,
                roles: ['*'],
            }
        },

    ]
};

export default LMS;
